package com.job.GaoYuXuan.Homework0709;

/**
 * @author 盖
 * @version 1.0
 * @since 2022-07-10 12:23:22
 */
public class ThinComputer extends Computer{
    float weight;

    public void function(){
        System.out.println("我们不仅支持常规电脑的功能，还拥有更大的续航时间，方便携带！！！");
    }

    public float sum(float a,float b){
        return a + b;
    }

    public ThinComputer() {

    }

    public ThinComputer(float weight) {
        this.weight = weight;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }
}